/********************************************************************************
* @author: Liu  HZ
* @date: 2024/9/21
* @description: 
********************************************************************************/
#include "code.h"

int main() {
    int a, b;
    while (cin >> a >> b) { // 注意 while 处理多个 case
        cout << rev(rev(a) + rev(b)) << endl;
    }
}